import servise from ".";

interface loginData{
    username:String,
    password:String
}
export function login(data:loginData){
    return servise({
        url:"/login",
        method:"get",
        data
    })
}
export function getGoodsList(){
    return servise({
        url:"/goods/list",
        method:"get"
    })
}
export function getUserList(){
    return servise({
        url:"/user/list",
        method:"get"
    })
}
export function getRoleList(){
    return servise({
        url:"/role/list",
        method:"get"
    })
}

export function getAuthList(){
    return servise({
        url:"/auth/list",
        method:"get"
    })
}


